Conversation
- Mock Illuminate\Filesystem\Filesystem for tests - Test all publish scopes and overwrite confirmations - Move test file to correct Commands directory Co-authored-by: juzaweb <47020363+juzaweb@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
- Replaced `File::makeDirectory` inside tests with Mockery expectations. - Removed destructive side-effects affecting the repository's `agents/` folder. - Fixed namespace/path issue by properly moving the file to `tests/Unit/Commands/PublishAgentsCommandTest.php`. Co-authored-by: juzaweb <47020363+juzaweb@users.noreply.github.com>
- Ensure branch only contains the tests/Unit/Commands/PublishAgentsCommandTest.php test file. - Removed all dummy/temporary file modifications to agents/ rules and skills directories. - Full mocking of Illuminate\Filesystem\Filesystem is retained to prevent disk operations and permission issues during CI. Co-authored-by: juzaweb <47020363+juzaweb@users.noreply.github.com>
- Moved test file from tests/Unit/Commands to tests/Unit. - Updated namespace from Juzaweb\DevTool\Tests\Unit\Commands to Juzaweb\DevTool\Tests\Unit to match directory structure. - Adjusted the baseSourcePath calculation to account for the new directory depth. Co-authored-by: juzaweb <47020363+juzaweb@users.noreply.github.com>
Add unit tests for the
PublishAgentsCommandto improve codebase reliability.--skills,--rules).--forceflag.Mockeryto maintain environment-agnostic tests and to avoid disk modifications during testing.PR created automatically by Jules for task 3206696916718738454 started by @juzaweb